
let bodyParser=require('body-parser')
const data=require('./src/mock/index')
console.log(data)
module.exports={
    devServer:{
        before(app){
            app.use(bodyParser.json())
            app.post('/api/list',(req,res)=>{
                res.send({
                  code:200,
                  data,
                })
            })
        }
    
    }
}